#include<bits/stdc++.h>
using namespace std;
int a, b, c;
string s;
int main()
{
    cin >> a >> b >> c;
    cin >> s;
    cout << a + b + c;
    cout << " " << s;
    
    return 0;
}